/*
 * @Descripttion: 
 * @version: 
 * @Author: mmzhang
 * @Date: 2021-07-27 16:02:34
 * @LastEditTime: 2022-03-31 14:55:10
 */
let vm = null;
// import clueCustomerMgr from '@/biz/customer/clueCustomer.js';
// import CustomerMgr from '@/biz/customer/customerOpt.js';
// import dateOpt from '@/biz/option/date.js';
// import table from '@/components/dt/table/render.js';
// import dt from "@dt/dt";
// import nameOpt from '@/biz/option/name.js'
// import channelMgr from '@/biz/channel/channel'
import standBookListOpt from '@/biz/standBookList/standBookListOpt.js'

function columnField(chooseBox, _this) {
  let columns2 = {}
  columns2 = standBookListOpt.options
  return columns2
}

function columns(head, chooseBox, _this) {
  let fields = columnField(chooseBox, _this),
    data = []
  for (let item of head) {
    data.push(fields[item.field] || item)
  }
  return data
}

function clueAllotColumns(_this, head, chooseBox) {
  vm = _this
  return [
    {
      type: 'checkbox',
      width: 60,
      align: 'center',
      fixed: 'left'
    },
    ...columns(head, chooseBox, _this),
  ]
}
export default {
  clueAllotColumns
}